package com.yellowcong.test;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
*
*作者:yellowcong
*日期:2017/08/31
*時間:11:34:03
*描述:
*/
public class Demo6 {
	
	public static void main(String[] args) {
		
	}
}
class BookServiceInterceptor implements MethodInterceptor{
	private Object tagart ;
	
	public BookServiceInterceptor(Object tagart) {
		this.tagart = tagart;
	}
	
	public Object getProxy() {
		
		return null;
	}
	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		// TODO Auto-generated method stub
		return null;
	}
	
}
interface BookServieProxy{
	/**
	 * 添加图书的操作
	 * @return
	 */
	String add(String name);
}

class BookServieProxyImpl implements BookServieProxy{

	@Override
	public String add(String name) {
		System.out.println("Book Add Method");
		return "添加书籍"+name;
	}
}
